<?php

/**
 * Diploma gateway class for communicating with persistent storage
 *
 * @category RedCross
 * @package Core_Diploma
 */

class Core_Gateway_Diploma extends RedCross_Gateway_GatewayAbstract {
    /**
     * Constructor
     * Defines some private variables
     */
    public function __construct()
    {
        $this->_class = 'Diploma';
        $this->_modelPath = 'Core_Model';
    }

    public function fetchAllForMemberId($memberId) {
        $query = Doctrine_Query::create()
            ->select()
            ->from('Core_Model_Diploma d')
            ->where('d.member_id = ?', $memberId);
        return $query->execute();
    }
}

?>
